package com.kenliang.javase.inherit;

/**
 * @author KenLiang
 * @description:
 * @date Created in 3:26 PM 2020/8/5.
 */
public class InheritTest {
    public static void main(String[] args) {
        Person person = new Student();
        //getClass()获取到的是对象实际的类型
        System.out.println(person.getClass());
    }


}
class Person{

}

class Student extends Person{

}
